﻿function onOpen(){
	//Get the saved options
	chooseColor(options.getValue("chalkColor"));
	chooseImage(options.getValue("boardImg"));
	desc_text.value=options.getValue("descTxt");
}
function onOk(){
	//Save the options
	chalkColor=color_code.value;
	if (!isHexa(chalkColor)){
		chalkColor=options.getValue("chalkColor");
	}
	options.putValue("chalkColor",chalkColor);
	options.putValue("boardImg",img_choose.src);
	options.putValue("descTxt",desc_text.value);
}
